package com.nbsaas.boot.project.data.entity;

import com.nbsaas.boot.code.annotation.*;
import com.nbsaas.boot.code.annotation.bean.StoreStateBean;
import com.nbsaas.boot.jpa.data.entity.LongEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Comment;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@StoreStateBean
@ComposeView
@org.hibernate.annotations.Table(appliesTo = "bs_project", comment = "项目")
@EqualsAndHashCode
@Data
@FormAnnotation(model = "项目")
@Entity
@Table(name = "bs_project")
public class Project extends LongEntity {


    @SearchItem(label = "项目名称", name = "name")
    @Comment("项目名称")
    @FormField(title = "项目名称",  grid = true, col = 12)
    @Column(length = 30)
    private String name;

    @FormField(title = "项目名称", col = 24,type = InputType.textarea)
    @Comment("项目介绍")
    private String note;


    @FormField(title = "添加时间", grid = true,width = "10000",ignore = true)
    @Comment("添加时间")
    private Date addDate;


    @Comment("最新修改时间")
    private Date lastDate;
}
